using UnityEngine;

public class ApplyFood : MonoBehaviour
{
	public byte DrinkPlus = 10;

	public byte HealthPlus = 10;

	private void Start()
	{
		HumanCharacter humanCharacter = (!base.transform.root) ? base.transform.GetComponent<HumanCharacter>() : base.transform.root.GetComponent<HumanCharacter>();
		if ((bool)humanCharacter)
		{
			humanCharacter.UseHeal(HealthPlus);
			humanCharacter.UsePill(DrinkPlus);
		}
		UnityEngine.Object.Destroy(base.gameObject);
	}
}
